<!-- 进度文字 -->
<template>
    <div class="r_top">
        <TitleInfo :title="title"></TitleInfo>
        <div class="boxsrc">
            <ul class="step_pointing">
                <li :class="{ 'check': status == index }" v-for="(item, index) in list" :key="index">
                    <div><span>STEP</span><span>0{{ index + 1 }}</span></div>
                    <p>{{ item }}</p>
                </li>
            </ul>
        </div>
    </div>
</template>
<script setup>
 defineProps({
    status: {
        type: Number,
        default: 0
    },
    list: {
        type: Array,
        default: () => {
            return []
        }
    },
    title: {
        type: String,
        default: ''
    }
})
</script>
<style scoped lang='less'>
.boxsrc {
    padding: 0 38px 25px 65px;
}

ul {
    width: 100%;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-align-items: center;
    -moz-align-items: center;
    -ms-align-items: center;
    -o-align-items: center;
    align-items: center;
    -webkit-justify-content: space-between;
    -moz-justify-content: space-between;
    -ms-justify-content: space-between;
    -o-justify-content: space-between;
    justify-content: space-between;
    position: relative;
}

ul::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 1px;
    background-color: #e5e5e5;
    left: 0;
    top: 28px;
    z-index: 0;
}

ul li {
    padding: 0 9px;
    z-index: 1;
    position: relative;
    background: #fff;
}

ul li.check>div {
    color: #fff;
    background-color: #1c5a9e;
}

ul li.check>p {
    color: #376bb4;
}

ul li>div {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-direction: column;
    -moz-flex-direction: column;
    -ms-flex-direction: column;
    -o-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: center;
    -moz-align-items: center;
    -ms-align-items: center;
    -o-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    -moz-justify-content: center;
    -ms-justify-content: center;
    -o-justify-content: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1.2;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    -moz-border-radius: 50%;
    -webkit-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    color: #999999;
    background-color: #e5e5e5;
    margin-bottom: 10px;
}
</style>